package com.ruoyi.project.lesson.lessonad.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 推广位置对象 lesson_ad
 *
 * @author shixiangwen
 * @date 2020-12-22
 */
public class LessonAd extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 应用
     */
    @Excel(name = "应用")
    private String app;

    /**
     * 位置
     */
    @Excel(name = "位置")
    private String place;

    /**
     * 目标
     */
    @Excel(name = "目标")
    private Integer target;

    /**
     * 目标参数
     */
    @Excel(name = "目标参数")
    private String targetId;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sort;

    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer status;

    /**
     * 图片地址
     */
    @Excel(name = "图片地址")
    private String imgUri;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getApp() {
        return app;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getPlace() {
        return place;
    }

    public void setTarget(Integer target) {
        this.target = target;
    }

    public Integer getTarget() {
        return target;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setImgUri(String imgUri) {
        this.imgUri = imgUri;
    }

    public String getImgUri() {
        return imgUri;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("app", getApp()).append("place", getPlace()).append("target", getTarget())
                .append("targetId", getTargetId()).append("sort", getSort()).append("startTime", getStartTime()).append("endTime", getEndTime()).append("cretaedTime", getCreatedTime())
                .append("status", getStatus()).append("imgUri", getImgUri()).toString();
    }
}
